<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>持家有道网上超市</title>
<meta name="keywords" content="持家有道网上超市">
<meta name="description" content="持家有道网上超市">
<link rel="stylesheet" type="text/css" href="css/basic.min.css">
<link rel="stylesheet" type="text/css" href="css/qingfeng.css">
<script type="text/javascript" src="js/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="js/jquery.cycle.all.js"></script>
<script type="text/javascript" src="js/jquery.jqzoom.js"></script>
<script type="text/javascript" src="js/zoomset.js"></script>
<script type="text/javascript" src="js/basic.js"></script>
<script>
    $(function(){

	$(".action-account-check").blur(function(){
		var tempN = vailPhone();
	    if(tempN){
			$(".action-need-verify").show();
		}else{
			$(".action-need-verify").hide();
		}
	})


  function vailPhone(){
      var phone = $(".action-account-check").val();
      var flag = false;
      var myreg = /^(((13[0-9]{1})|(14[0-9]{1})|(17[0]{1})|(15[0-3]{1})|(15[5-9]{1})|(18[0-9]{1}))+\d{8})$/;
      if(phone.length !=11){
        flag = false;
      }else if(myreg.test(phone)){
        flag = true;
      }
      return flag;
    }


	var count = 20;
	$(".action-get-verifycode").click(function(){
		 var timeout;
		 var $this =$(this);
		 $this.addClass('disabled');
		 var textCont = $(this).children("span").children("span").children("i");
		 timeout = setTimeout(BtnCount, 1000);

	})

	 BtnCount = function() {
		       var $this = $(".action-get-verifycode");
               var textCont = $this.children("span").children("span").children("i");
               if (count == 0) {
					count=20;
					$this.removeClass('disabled');
					textCont.html("");
					clearTimeout(timeout);
				}else {
					count--;
					textCont.html(count);
					setTimeout(BtnCount, 1000);
				}
        };








    });
</script>
</head>

<body>

<% include partial/header %>

<!--content start--->
<div id="content">
  <div class="wrap clearfix">
    <div class="Navigation"> <span class="pos-front">您当前的位置：</span> <span class="now">用户注册</span> </div>
    <div class="signup-success clearfix" id="signup_success">
      <i class="icon icon-success">%</i>
      <form action="/passport-save_local_uname.html" method="post" class="descrip">
        <p>恭喜<span data-role="registerSuccessName"></span>已经注册成功 !</p>
        <div class="tips-actions">
          <a href="./index.html" class="btn btn-simple"><span><span>继续购物</span></span></a>
          <a href="javascript:;" class="btn btn-simple" data-role="backToLink"><span><span>返回注册前页面</span></span></a>
          <a href="#" class="btn btn-simple"><span><span>进入会员中心</span></span></a>
        </div>
        <div class="tips-controls">
          <label for="">设置用户名：</label>
          <input class="x-input" type="text" name="local_uname" id="dom_el_0ca4b50"><button class="btn btn-caution" rel="_request" type="submit"><span><span>保存</span></span></button>    </div>
        <div class="alert-tip">如果您不填写用户名，则系统将使用您的手机号码或者邮箱做为用户名，并在首页或者评论咨询等地方显示<em>注意：用户名只能设置一次</em></div>
        <div class="alert-tip">建议您立即进行邮箱验证，使账户更安全购物更放心，<a href="#">点击</a> 进行邮箱验证！</div>
      </form>
    </div>

  </div>
</div>
<!--content end-->

<% include partial/footer %>
<div class="message-error" id="pop_message_error" data-single="true" tabindex="1" style="display:none; z-index: 999999; left: 541px; top: 137px; position: fixed; ">
  <div class="message-body clearfix">
    <div class="icon">!</div>
    <div class="message-content">登录账号不能全为数字</div>
  </div>
</div>
<script type="text/javascript" src="./js/common.js"></script>
<script type="text/javascript" src="./js/registerResult.js"></script>
</body>
</html>
